package com.github.shiqiyue.app.modules.sys.entity;

import com.baomidou.mybatisplus.annotation.TableName;
import com.github.shiqiyue.app.common.entity.BaseEntity;
import com.github.shiqiyue.app.modules.sys.enums.OperlogTypeEnum;
import lombok.Data;

/**
 * <p>
 * 操作日志
 * </p>
 *
 * @author wenyao.wu
 * @since 2020-06-19
 */
@Data
@TableName("sys_oper_log")
public class OperLog extends BaseEntity {

    private static final long serialVersionUID = 1L;

    /**
     * 数据库字段-
     */
    public static final String USER_ID = "user_id";

    /**
     * 数据库字段-操作类型
     */
    public static final String TYPE = "type";

    /**
     * 数据库字段-内容
     */
    public static final String CONTENT = "content";

    /***
     * 目标ID
     */
    public static final String TARGET_ID = "target_id";


    private Long userId;

    /**
     * 操作类型
     */
    private OperlogTypeEnum type;

    /**
     * 内容
     */
    private String content;

    /***
     * 目标ID
     */
    private Long targetId;


}
